package com.tjetc.dao;

import com.tjetc.domain.Admin;
import com.tjetc.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

public interface AdminDao {

    Admin login(String username,String password,int rid) throws SQLException;

    int getCount(String username,String phone) throws SQLException;

    List<Admin> list(String username, String phone, PageInfo<Admin> pageInfo) throws SQLException;

    int update(Admin admin) throws SQLException;

    int updateStatus(int status,int id) throws SQLException;

    int getMaxId() throws SQLException;

    int add(Admin admin) throws SQLException;

    Admin getById(int id) throws SQLException;

    int findMaxId() throws SQLException;


    Admin getpwdById(int id) throws SQLException;

    int updatepwd(Admin admin) throws SQLException;

    Admin findByName(String username) throws SQLException;
}
